home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Icons.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  19.7 KB  |  713 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Icons.a
  3. ;
  4. ;    Contains:    Icon Utilities Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 8
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1990-1997 by Apple Computer, Inc. All rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__ICONS__') = 'UNDEFINED' THEN
  19. __ICONS__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27.  
  28.  
  29.                                                             ; The following are icons for which there are both icon suites and SICNs. 
  30. kGenericDocumentIconResource    EQU        -4000
  31. kGenericStationeryIconResource    EQU        -3985
  32. kGenericEditionFileIconResource    EQU        -3989
  33. kGenericApplicationIconResource    EQU        -3996
  34. kGenericDeskAccessoryIconResource EQU    -3991
  35. kGenericFolderIconResource        EQU        -3999
  36. kPrivateFolderIconResource        EQU        -3994
  37. kFloppyIconResource                EQU        -3998
  38. kTrashIconResource                EQU        -3993
  39. kGenericRAMDiskIconResource        EQU        -3988
  40. kGenericCDROMIconResource        EQU        -3987                ; The following are icons for which there are SICNs only. 
  41. kDesktopIconResource            EQU        -3992
  42. kOpenFolderIconResource            EQU        -3997
  43. kGenericHardDiskIconResource    EQU        -3995
  44. kGenericFileServerIconResource    EQU        -3972
  45. kGenericSuitcaseIconResource    EQU        -3970
  46. kGenericMoverObjectIconResource    EQU        -3969                ; The following are icons for which there are icon suites only. 
  47. kGenericPreferencesIconResource    EQU        -3971
  48. kGenericQueryDocumentIconResource EQU    -16506
  49. kGenericExtensionIconResource    EQU        -16415
  50. kSystemFolderIconResource        EQU        -3983
  51. kAppleMenuFolderIconResource    EQU        -3982
  52.  
  53.                                                             ; Obsolete. Use named constants defined above. 
  54. genericDocumentIconResource        EQU        -4000
  55. genericStationeryIconResource    EQU        -3985
  56. genericEditionFileIconResource    EQU        -3989
  57. genericApplicationIconResource    EQU        -3996
  58. genericDeskAccessoryIconResource EQU    -3991
  59. genericFolderIconResource        EQU        -3999
  60. privateFolderIconResource        EQU        -3994
  61. floppyIconResource                EQU        -3998
  62. trashIconResource                EQU        -3994
  63. genericRAMDiskIconResource        EQU        -3988
  64. genericCDROMIconResource        EQU        -3987
  65. desktopIconResource                EQU        -3992
  66. openFolderIconResource            EQU        -3997
  67. genericHardDiskIconResource        EQU        -3995
  68. genericFileServerIconResource    EQU        -3972
  69. genericSuitcaseIconResource        EQU        -3970
  70. genericMoverObjectIconResource    EQU        -3969
  71. genericPreferencesIconResource    EQU        -3971
  72. genericQueryDocumentIconResource EQU    -16506
  73. genericExtensionIconResource    EQU        -16415
  74. systemFolderIconResource        EQU        -3983
  75. appleMenuFolderIconResource        EQU        -3982
  76.  
  77. kStartupFolderIconResource        EQU        -3981
  78. kOwnedFolderIconResource        EQU        -3980
  79. kDropFolderIconResource            EQU        -3979
  80. kSharedFolderIconResource        EQU        -3978
  81. kMountedFolderIconResource        EQU        -3977
  82. kControlPanelFolderIconResource    EQU        -3976
  83. kPrintMonitorFolderIconResource    EQU        -3975
  84. kPreferencesFolderIconResource    EQU        -3974
  85. kExtensionsFolderIconResource    EQU        -3973
  86. kFontsFolderIconResource        EQU        -3968
  87. kFullTrashIconResource            EQU        -3984
  88.  
  89.                                                             ; Obsolete. Use named constants defined above. 
  90. startupFolderIconResource        EQU        -3981
  91. ownedFolderIconResource            EQU        -3980
  92. dropFolderIconResource            EQU        -3979
  93. sharedFolderIconResource        EQU        -3978
  94. mountedFolderIconResource        EQU        -3977
  95. controlPanelFolderIconResource    EQU        -3976
  96. printMonitorFolderIconResource    EQU        -3975
  97. preferencesFolderIconResource    EQU        -3974
  98. extensionsFolderIconResource    EQU        -3973
  99. fontsFolderIconResource            EQU        -3968
  100. fullTrashIconResource            EQU        -3984
  101.  
  102. kLarge1BitMask                    EQU        'ICN#'
  103. kLarge4BitData                    EQU        'icl4'
  104. kLarge8BitData                    EQU        'icl8'
  105. kSmall1BitMask                    EQU        'ics#'
  106. kSmall4BitData                    EQU        'ics4'
  107. kSmall8BitData                    EQU        'ics8'
  108. kMini1BitMask                    EQU        'icm#'
  109. kMini4BitData                    EQU        'icm4'
  110. kMini8BitData                    EQU        'icm8'
  111.  
  112.                                                             ; Obsolete. Use names defined above. 
  113. large1BitMask                    EQU        'ICN#'
  114. large4BitData                    EQU        'icl4'
  115. large8BitData                    EQU        'icl8'
  116. small1BitMask                    EQU        'ics#'
  117. small4BitData                    EQU        'ics4'
  118. small8BitData                    EQU        'ics8'
  119. mini1BitMask                    EQU        'icm#'
  120. mini4BitData                    EQU        'icm4'
  121. mini8BitData                    EQU        'icm8'
  122. ;   alignment type values 
  123.  
  124. kAlignNone                        EQU        $00
  125. kAlignVerticalCenter            EQU        $01
  126. kAlignTop                        EQU        $02
  127. kAlignBottom                    EQU        $03
  128. kAlignHorizontalCenter            EQU        $04
  129. kAlignAbsoluteCenter            EQU        $05
  130. kAlignCenterTop                    EQU        $06
  131. kAlignCenterBottom                EQU        $07
  132. kAlignLeft                        EQU        $08
  133. kAlignCenterLeft                EQU        $09
  134. kAlignTopLeft                    EQU        $0A
  135. kAlignBottomLeft                EQU        $0B
  136. kAlignRight                        EQU        $0C
  137. kAlignCenterRight                EQU        $0D
  138. kAlignTopRight                    EQU        $0E
  139. kAlignBottomRight                EQU        $0F
  140.  
  141.                                                             ; Obsolete. Use names defined above. 
  142. atNone                            EQU        $00
  143. atVerticalCenter                EQU        $01
  144. atTop                            EQU        $02
  145. atBottom                        EQU        $03
  146. atHorizontalCenter                EQU        $04
  147. atAbsoluteCenter                EQU        $05
  148. atCenterTop                        EQU        $06
  149. atCenterBottom                    EQU        $07
  150. atLeft                            EQU        $08
  151. atCenterLeft                    EQU        $09
  152. atTopLeft                        EQU        $0A
  153. atBottomLeft                    EQU        $0B
  154. atRight                            EQU        $0C
  155. atCenterRight                    EQU        $0D
  156. atTopRight                        EQU        $0E
  157. atBottomRight                    EQU        $0F
  158. ; typedef SInt16                         IconAlignmentType
  159.  
  160. ;   transform type values  
  161.  
  162. kTransformNone                    EQU        $00
  163. kTransformDisabled                EQU        $01
  164. kTransformOffline                EQU        $02
  165. kTransformOpen                    EQU        $03
  166. kTransformLabel1                EQU        $0100
  167. kTransformLabel2                EQU        $0200
  168. kTransformLabel3                EQU        $0300
  169. kTransformLabel4                EQU        $0400
  170. kTransformLabel5                EQU        $0500
  171. kTransformLabel6                EQU        $0600
  172. kTransformLabel7                EQU        $0700
  173. kTransformSelected                EQU        $4000
  174. kTransformSelectedDisabled        EQU        $4001
  175. kTransformSelectedOffline        EQU        $4002
  176. kTransformSelectedOpen            EQU        $4003
  177.  
  178.                                                             ; Obsolete. Use names defined above. 
  179. ttNone                            EQU        $00
  180. ttDisabled                        EQU        $01
  181. ttOffline                        EQU        $02
  182. ttOpen                            EQU        $03
  183. ttLabel1                        EQU        $0100
  184. ttLabel2                        EQU        $0200
  185. ttLabel3                        EQU        $0300
  186. ttLabel4                        EQU        $0400
  187. ttLabel5                        EQU        $0500
  188. ttLabel6                        EQU        $0600
  189. ttLabel7                        EQU        $0700
  190. ttSelected                        EQU        $4000
  191. ttSelectedDisabled                EQU        $4001
  192. ttSelectedOffline                EQU        $4002
  193. ttSelectedOpen                    EQU        $4003
  194. ; typedef SInt16                         IconTransformType
  195.  
  196. ;   Selector mask values  
  197.  
  198. kSelectorLarge1Bit                EQU        $00000001
  199. kSelectorLarge4Bit                EQU        $00000002
  200. kSelectorLarge8Bit                EQU        $00000004
  201. kSelectorSmall1Bit                EQU        $00000100
  202. kSelectorSmall4Bit                EQU        $00000200
  203. kSelectorSmall8Bit                EQU        $00000400
  204. kSelectorMini1Bit                EQU        $00010000
  205. kSelectorMini4Bit                EQU        $00020000
  206. kSelectorMini8Bit                EQU        $00040000
  207. kSelectorAllLargeData            EQU        $000000FF
  208. kSelectorAllSmallData            EQU        $0000FF00
  209. kSelectorAllMiniData            EQU        $00FF0000
  210. kSelectorAll1BitData            EQU        $00010101
  211. kSelectorAll4BitData            EQU        $00020202
  212. kSelectorAll8BitData            EQU        $00040404
  213. kSelectorAllAvailableData        EQU        $FFFFFFFF
  214.  
  215.                                                             ; Obsolete. Use names defined above. 
  216. svLarge1Bit                        EQU        $00000001
  217. svLarge4Bit                        EQU        $00000002
  218. svLarge8Bit                        EQU        $00000004
  219. svSmall1Bit                        EQU        $00000100
  220. svSmall4Bit                        EQU        $00000200
  221. svSmall8Bit                        EQU        $00000400
  222. svMini1Bit                        EQU        $00010000
  223. svMini4Bit                        EQU        $00020000
  224. svMini8Bit                        EQU        $00040000
  225. svAllLargeData                    EQU        $000000FF
  226. svAllSmallData                    EQU        $0000FF00
  227. svAllMiniData                    EQU        $00FF0000
  228. svAll1BitData                    EQU        $00010101
  229. svAll4BitData                    EQU        $00020202
  230. svAll8BitData                    EQU        $00040404
  231. svAllAvailableData                EQU        $FFFFFFFF
  232. ; typedef UInt32                         IconSelectorValue
  233.  
  234. ; typedef IconActionProcPtr             IconAction
  235.  
  236. ; typedef IconGetterProcPtr             IconGetter
  237.  
  238.     IF ¬ OLDROUTINELOCATIONS THEN
  239. CIcon                    RECORD 0
  240. iconPMap                 ds        PixMap            ; offset: $0 (0)        ; the icon's pixMap
  241. iconMask                 ds        BitMap            ; offset: $32 (50)        ; the icon's mask
  242. iconBMap                 ds        BitMap            ; offset: $40 (64)        ; the icon's bitMap
  243. iconData                 ds.l    1                ; offset: $4E (78)        ; the icon's data
  244. iconMaskData             ds.w    1                ; offset: $52 (82) <-- really an array of length one ; icon's mask and BitMap data
  245. sizeof                     EQU *                    ; size:   $54 (84)
  246.                         ENDR
  247. ; typedef struct CIcon *                CIconPtr
  248.  
  249. ; typedef CIconPtr *                    CIconHandle
  250.  
  251. ;
  252. ; pascal CIconHandle GetCIcon(SInt16 iconID)
  253. ;
  254.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  255.         _GetCIcon:    OPWORD    $AA1E
  256.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  257.         IMPORT_CFM_FUNCTION GetCIcon
  258.     ENDIF
  259.  
  260. ;
  261. ; pascal void PlotCIcon(const Rect *theRect, CIconHandle theIcon)
  262. ;
  263.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  264.         _PlotCIcon:    OPWORD    $AA1F
  265.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  266.         IMPORT_CFM_FUNCTION PlotCIcon
  267.     ENDIF
  268.  
  269. ;
  270. ; pascal void DisposeCIcon(CIconHandle theIcon)
  271. ;
  272.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  273.         _DisposeCIcon:    OPWORD    $AA25
  274.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  275.         IMPORT_CFM_FUNCTION DisposeCIcon
  276.     ENDIF
  277.  
  278.     ENDIF
  279. ;
  280. ; pascal Handle GetIcon(SInt16 iconID)
  281. ;
  282.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  283.         _GetIcon:    OPWORD    $A9BB
  284.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  285.         IMPORT_CFM_FUNCTION GetIcon
  286.     ENDIF
  287.  
  288. ;
  289. ; pascal void PlotIcon(const Rect *theRect, Handle theIcon)
  290. ;
  291.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  292.         _PlotIcon:    OPWORD    $A94B
  293.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  294.         IMPORT_CFM_FUNCTION PlotIcon
  295.     ENDIF
  296.  
  297.  
  298.  
  299. ;    Note:    IconSuiteRef and IconCacheRef should be an abstract types, 
  300. ;            but too much source code already relies on them being of type Handle.
  301. ;
  302.  
  303. ; typedef Handle                         IconSuiteRef
  304.  
  305. ; typedef Handle                         IconCacheRef
  306.  
  307.  
  308. ;
  309. ; pascal OSErr PlotIconID(const Rect *theRect, IconAlignmentType align, IconTransformType transform, SInt16 theResID)
  310. ;
  311.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  312.         Macro
  313.         _PlotIconID
  314.             move.w              #$0500,D0
  315.             dc.w                $ABC9
  316.         EndM
  317.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  318.         IMPORT_CFM_FUNCTION PlotIconID
  319.     ENDIF
  320.  
  321. ;
  322. ; pascal OSErr NewIconSuite(IconSuiteRef *theIconSuite)
  323. ;
  324.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  325.         Macro
  326.         _NewIconSuite
  327.             move.w              #$0207,D0
  328.             dc.w                $ABC9
  329.         EndM
  330.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  331.         IMPORT_CFM_FUNCTION NewIconSuite
  332.     ENDIF
  333.  
  334. ;
  335. ; pascal OSErr AddIconToSuite(Handle theIconData, IconSuiteRef theSuite, ResType theType)
  336. ;
  337.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  338.         Macro
  339.         _AddIconToSuite
  340.             move.w              #$0608,D0
  341.             dc.w                $ABC9
  342.         EndM
  343.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  344.         IMPORT_CFM_FUNCTION AddIconToSuite
  345.     ENDIF
  346.  
  347. ;
  348. ; pascal OSErr GetIconFromSuite(Handle *theIconData, IconSuiteRef theSuite, ResType theType)
  349. ;
  350.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  351.         Macro
  352.         _GetIconFromSuite
  353.             move.w              #$0609,D0
  354.             dc.w                $ABC9
  355.         EndM
  356.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  357.         IMPORT_CFM_FUNCTION GetIconFromSuite
  358.     ENDIF
  359.  
  360. ;
  361. ; pascal OSErr ForEachIconDo(IconSuiteRef theSuite, IconSelectorValue selector, IconActionUPP action, void *yourDataPtr)
  362. ;
  363.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  364.         Macro
  365.         _ForEachIconDo
  366.             move.w              #$080A,D0
  367.             dc.w                $ABC9
  368.         EndM
  369.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  370.         IMPORT_CFM_FUNCTION ForEachIconDo
  371.     ENDIF
  372.  
  373. ;
  374. ; pascal OSErr GetIconSuite(IconSuiteRef *theIconSuite, SInt16 theResID, IconSelectorValue selector)
  375. ;
  376.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  377.         Macro
  378.         _GetIconSuite
  379.             move.w              #$0501,D0
  380.             dc.w                $ABC9
  381.         EndM
  382.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  383.         IMPORT_CFM_FUNCTION GetIconSuite
  384.     ENDIF
  385.  
  386. ;
  387. ; pascal OSErr DisposeIconSuite(IconSuiteRef theIconSuite, Boolean disposeData)
  388. ;
  389.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  390.         Macro
  391.         _DisposeIconSuite
  392.             move.w              #$0302,D0
  393.             dc.w                $ABC9
  394.         EndM
  395.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  396.         IMPORT_CFM_FUNCTION DisposeIconSuite
  397.     ENDIF
  398.  
  399. ;
  400. ; pascal OSErr PlotIconSuite(const Rect *theRect, IconAlignmentType align, IconTransformType transform, IconSuiteRef theIconSuite)
  401. ;
  402.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  403.         Macro
  404.         _PlotIconSuite
  405.             move.w              #$0603,D0
  406.             dc.w                $ABC9
  407.         EndM
  408.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  409.         IMPORT_CFM_FUNCTION PlotIconSuite
  410.     ENDIF
  411.  
  412. ;
  413. ; pascal OSErr MakeIconCache(IconCacheRef *theCache, IconGetterUPP makeIcon, void *yourDataPtr)
  414. ;
  415.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  416.         Macro
  417.         _MakeIconCache
  418.             move.w              #$0604,D0
  419.             dc.w                $ABC9
  420.         EndM
  421.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  422.         IMPORT_CFM_FUNCTION MakeIconCache
  423.     ENDIF
  424.  
  425. ;
  426. ; pascal OSErr LoadIconCache(const Rect *theRect, IconAlignmentType align, IconTransformType transform, IconCacheRef theIconCache)
  427. ;
  428.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  429.         Macro
  430.         _LoadIconCache
  431.             move.w              #$0606,D0
  432.             dc.w                $ABC9
  433.         EndM
  434.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  435.         IMPORT_CFM_FUNCTION LoadIconCache
  436.     ENDIF
  437.  
  438. ;
  439. ; pascal OSErr PlotIconMethod(const Rect *theRect, IconAlignmentType align, IconTransformType transform, IconGetterUPP theMethod, void *yourDataPtr)
  440. ;
  441.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  442.         Macro
  443.         _PlotIconMethod
  444.             move.w              #$0805,D0
  445.             dc.w                $ABC9
  446.         EndM
  447.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  448.         IMPORT_CFM_FUNCTION PlotIconMethod
  449.     ENDIF
  450.  
  451. ;
  452. ; pascal OSErr GetLabel(SInt16 labelNumber, RGBColor *labelColor, Str255 labelString)
  453. ;
  454.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  455.         Macro
  456.         _GetLabel
  457.             move.w              #$050B,D0
  458.             dc.w                $ABC9
  459.         EndM
  460.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  461.         IMPORT_CFM_FUNCTION GetLabel
  462.     ENDIF
  463.  
  464. ;
  465. ; pascal Boolean PtInIconID(Point testPt, const Rect *iconRect, IconAlignmentType align, SInt16 iconID)
  466. ;
  467.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  468.         Macro
  469.         _PtInIconID
  470.             move.w              #$060D,D0
  471.             dc.w                $ABC9
  472.         EndM
  473.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  474.         IMPORT_CFM_FUNCTION PtInIconID
  475.     ENDIF
  476.  
  477. ;
  478. ; pascal Boolean PtInIconSuite(Point testPt, const Rect *iconRect, IconAlignmentType align, IconSuiteRef theIconSuite)
  479. ;
  480.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  481.         Macro
  482.         _PtInIconSuite
  483.             move.w              #$070E,D0
  484.             dc.w                $ABC9
  485.         EndM
  486.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  487.         IMPORT_CFM_FUNCTION PtInIconSuite
  488.     ENDIF
  489.  
  490. ;
  491. ; pascal Boolean PtInIconMethod(Point testPt, const Rect *iconRect, IconAlignmentType align, IconGetterUPP theMethod, void *yourDataPtr)
  492. ;
  493.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  494.         Macro
  495.         _PtInIconMethod
  496.             move.w              #$090F,D0
  497.             dc.w                $ABC9
  498.         EndM
  499.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  500.         IMPORT_CFM_FUNCTION PtInIconMethod
  501.     ENDIF
  502.  
  503. ;
  504. ; pascal Boolean RectInIconID(const Rect *testRect, const Rect *iconRect, IconAlignmentType align, SInt16 iconID)
  505. ;
  506.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  507.         Macro
  508.         _RectInIconID
  509.             move.w              #$0610,D0
  510.             dc.w                $ABC9
  511.         EndM
  512.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  513.         IMPORT_CFM_FUNCTION RectInIconID
  514.     ENDIF
  515.  
  516. ;
  517. ; pascal Boolean RectInIconSuite(const Rect *testRect, const Rect *iconRect, IconAlignmentType align, IconSuiteRef theIconSuite)
  518. ;
  519.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  520.         Macro
  521.         _RectInIconSuite
  522.             move.w              #$0711,D0
  523.             dc.w                $ABC9
  524.         EndM
  525.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  526.         IMPORT_CFM_FUNCTION RectInIconSuite
  527.     ENDIF
  528.  
  529. ;
  530. ; pascal Boolean RectInIconMethod(const Rect *testRect, const Rect *iconRect, IconAlignmentType align, IconGetterUPP theMethod, void *yourDataPtr)
  531. ;
  532.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  533.         Macro
  534.         _RectInIconMethod
  535.             move.w              #$0912,D0
  536.             dc.w                $ABC9
  537.         EndM
  538.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  539.         IMPORT_CFM_FUNCTION RectInIconMethod
  540.     ENDIF
  541.  
  542. ;
  543. ; pascal OSErr IconIDToRgn(RgnHandle theRgn, const Rect *iconRect, IconAlignmentType align, SInt16 iconID)
  544. ;
  545.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  546.         Macro
  547.         _IconIDToRgn
  548.             move.w              #$0613,D0
  549.             dc.w                $ABC9
  550.         EndM
  551.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  552.         IMPORT_CFM_FUNCTION IconIDToRgn
  553.     ENDIF
  554.  
  555. ;
  556. ; pascal OSErr IconSuiteToRgn(RgnHandle theRgn, const Rect *iconRect, IconAlignmentType align, IconSuiteRef theIconSuite)
  557. ;
  558.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  559.         Macro
  560.         _IconSuiteToRgn
  561.             move.w              #$0714,D0
  562.             dc.w                $ABC9
  563.         EndM
  564.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  565.         IMPORT_CFM_FUNCTION IconSuiteToRgn
  566.     ENDIF
  567.  
  568. ;
  569. ; pascal OSErr IconMethodToRgn(RgnHandle theRgn, const Rect *iconRect, IconAlignmentType align, IconGetterUPP theMethod, void *yourDataPtr)
  570. ;
  571.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  572.         Macro
  573.         _IconMethodToRgn
  574.             move.w              #$0915,D0
  575.             dc.w                $ABC9
  576.         EndM
  577.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  578.         IMPORT_CFM_FUNCTION IconMethodToRgn
  579.     ENDIF
  580.  
  581. ;
  582. ; pascal OSErr SetSuiteLabel(IconSuiteRef theSuite, SInt16 theLabel)
  583. ;
  584.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  585.         Macro
  586.         _SetSuiteLabel
  587.             move.w              #$0316,D0
  588.             dc.w                $ABC9
  589.         EndM
  590.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  591.         IMPORT_CFM_FUNCTION SetSuiteLabel
  592.     ENDIF
  593.  
  594. ;
  595. ; pascal SInt16 GetSuiteLabel(IconSuiteRef theSuite)
  596. ;
  597.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  598.         Macro
  599.         _GetSuiteLabel
  600.             move.w              #$0217,D0
  601.             dc.w                $ABC9
  602.         EndM
  603.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  604.         IMPORT_CFM_FUNCTION GetSuiteLabel
  605.     ENDIF
  606.  
  607. ;
  608. ; pascal OSErr GetIconCacheData(IconCacheRef theCache, void **theData)
  609. ;
  610.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  611.         Macro
  612.         _GetIconCacheData
  613.             move.w              #$0419,D0
  614.             dc.w                $ABC9
  615.         EndM
  616.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  617.         IMPORT_CFM_FUNCTION GetIconCacheData
  618.     ENDIF
  619.  
  620. ;
  621. ; pascal OSErr SetIconCacheData(IconCacheRef theCache, void *theData)
  622. ;
  623.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  624.         Macro
  625.         _SetIconCacheData
  626.             move.w              #$041A,D0
  627.             dc.w                $ABC9
  628.         EndM
  629.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  630.         IMPORT_CFM_FUNCTION SetIconCacheData
  631.     ENDIF
  632.  
  633. ;
  634. ; pascal OSErr GetIconCacheProc(IconCacheRef theCache, IconGetterUPP *theProc)
  635. ;
  636.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  637.         Macro
  638.         _GetIconCacheProc
  639.             move.w              #$041B,D0
  640.             dc.w                $ABC9
  641.         EndM
  642.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  643.         IMPORT_CFM_FUNCTION GetIconCacheProc
  644.     ENDIF
  645.  
  646. ;
  647. ; pascal OSErr SetIconCacheProc(IconCacheRef theCache, IconGetterUPP theProc)
  648. ;
  649.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  650.         Macro
  651.         _SetIconCacheProc
  652.             move.w              #$041C,D0
  653.             dc.w                $ABC9
  654.         EndM
  655.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  656.         IMPORT_CFM_FUNCTION SetIconCacheProc
  657.     ENDIF
  658.  
  659. ;
  660. ; pascal OSErr PlotIconHandle(const Rect *theRect, IconAlignmentType align, IconTransformType transform, Handle theIcon)
  661. ;
  662.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  663.         Macro
  664.         _PlotIconHandle
  665.             move.w              #$061D,D0
  666.             dc.w                $ABC9
  667.         EndM
  668.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  669.         IMPORT_CFM_FUNCTION PlotIconHandle
  670.     ENDIF
  671.  
  672. ;
  673. ; pascal OSErr PlotSICNHandle(const Rect *theRect, IconAlignmentType align, IconTransformType transform, Handle theSICN)
  674. ;
  675.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  676.         Macro
  677.         _PlotSICNHandle
  678.             move.w              #$061E,D0
  679.             dc.w                $ABC9
  680.         EndM
  681.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  682.         IMPORT_CFM_FUNCTION PlotSICNHandle
  683.     ENDIF
  684.  
  685. ;
  686. ; pascal OSErr PlotCIconHandle(const Rect *theRect, IconAlignmentType align, IconTransformType transform, CIconHandle theCIcon)
  687. ;
  688.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  689.         Macro
  690.         _PlotCIconHandle
  691.             move.w              #$061F,D0
  692.             dc.w                $ABC9
  693.         EndM
  694.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  695.         IMPORT_CFM_FUNCTION PlotCIconHandle
  696.     ENDIF
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.     ENDIF ; __ICONS__ 
  711.  
  712.